<div>
    <h2 data-translate="byibserverApp.isurer.home.title">Isurers</h2>
    <jhi-alert></jhi-alert>
    <div class="container-fluid">
        <div class="row">
            <div class="col-xs-4 no-padding-left">
                <button class="btn btn-primary" ui-sref="isurer.new" >
                    <span class="glyphicon glyphicon-plus"></span>
                    <span class="hidden-xs-down"  data-translate="byibserverApp.isurer.home.createLabel">
                        Create new Isurer
                    </span>
                </button>
            </div>
            <div class="col-xs-8 no-padding-right">
                <form name="searchForm" class="form-inline">
                    <div class="input-group pull-right" >
                        <input type="text" class="form-control" ng-model="vm.searchQuery" id="searchQuery" placeholder="{{ 'byibserverApp.isurer.home.search' | translate }}">
                        <span  class="input-group-btn width-min" >
                            <button class="btn btn-info" ng-click="vm.search(vm.searchQuery)">
                                <span class="glyphicon glyphicon-search"></span>
                            </button>
                        </span>
                        <span class="input-group-btn width-min" ng-if="vm.currentSearch">
                            <button class="btn btn-info" ng-click="vm.clear()">
                                <span class="glyphicon glyphicon-trash"></span>
                            </button>
                        </span>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <br/>
    <div class="table-responsive">
        <table class="jh-table table table-striped">
            <thead>
                <tr jh-sort="vm.predicate" ascending="vm.reverse" callback="vm.transition()">
                    <th jh-sort-by="id"><span data-translate="global.field.id">ID</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="companyImage"><span data-translate="byibserverApp.isurer.companyImage">Company Image</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="backgroundImg"><span data-translate="byibserverApp.isurer.backgroundImg">Background Img</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="corporateName"><span data-translate="byibserverApp.isurer.corporateName">Corporate Name</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="sybopsis"><span data-translate="byibserverApp.isurer.sybopsis">Sybopsis</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="shareholderInfoAbstract"><span data-translate="byibserverApp.isurer.shareholderInfoAbstract">Shareholder Info Abstract</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="shareholderInfo"><span data-translate="byibserverApp.isurer.shareholderInfo">Shareholder Info</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="companyOperationsAbstract"><span data-translate="byibserverApp.isurer.companyOperationsAbstract">Company Operations Abstract</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="companyOperations"><span data-translate="byibserverApp.isurer.companyOperations">Company Operations</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="claimSettlingCapacityAbstract"><span data-translate="byibserverApp.isurer.claimSettlingCapacityAbstract">Claim Settling Capacity Abstract</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="claimSettlingCapacity"><span data-translate="byibserverApp.isurer.claimSettlingCapacity">Claim Settling Capacity</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="isurer in vm.isurers track by isurer.id">
                    <td><a ui-sref="isurer-detail({id:isurer.id})">{{isurer.id}}</a></td>
                    <td>{{isurer.companyImage}}</td>
                    <td>{{isurer.backgroundImg}}</td>
                    <td>{{isurer.corporateName}}</td>
                    <td>{{isurer.sybopsis}}</td>
                    <td>{{isurer.shareholderInfoAbstract}}</td>
                    <td>{{isurer.shareholderInfo}}</td>
                    <td>{{isurer.companyOperationsAbstract}}</td>
                    <td>{{isurer.companyOperations}}</td>
                    <td>{{isurer.claimSettlingCapacityAbstract}}</td>
                    <td>{{isurer.claimSettlingCapacity}}</td>
                    <td class="text-right">
                        <div class="btn-group flex-btn-group-container">
                            <button type="submit"
                                    ui-sref="isurer-detail({id:isurer.id})"
                                    class="btn btn-info btn-sm">
                                <span class="glyphicon glyphicon-eye-open"></span>
                                <span class="hidden-sm-down" data-translate="entity.action.view"></span>
                            </button>
                            <button type="submit"
                                    ui-sref="isurer.edit({id:isurer.id})"
                                    class="btn btn-primary btn-sm">
                                <span class="glyphicon glyphicon-pencil"></span>
                                <span class="hidden-sm-down" data-translate="entity.action.edit"></span>
                            </button>
                            <button type="submit"
                                    ui-sref="isurer.delete({id:isurer.id})"
                                    class="btn btn-danger btn-sm">
                                <span class="glyphicon glyphicon-remove-circle"></span>
                                <span class="hidden-sm-down" data-translate="entity.action.delete"></span>
                            </button>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="text-center">
        <jhi-item-count page="vm.page" total="vm.queryCount" items-per-page="vm.itemsPerPage"></jhi-item-count>
        <uib-pagination class="pagination-sm" total-items="vm.totalItems" items-per-page="vm.itemsPerPage" ng-model="vm.page" ng-change="vm.transition()"></uib-pagination>
    </div>
</div>
